package com.service;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * Created by Roman on 22.09.13.
 */
public class StartAnOrderActivity extends Activity {
    Button menuBtn;
    Button reviewOrderBtn;
    View menuView;
    View reviewOrderView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_see_menu);

        menuBtn = (Button) findViewById(R.id.menuButton);
        reviewOrderBtn = (Button) findViewById(R.id.reviewOrderButton);

        menuBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                menuView = view;
                //handle click
                view.setSelected(true);
                if (reviewOrderView != null) {
                    reviewOrderView.setSelected(false);

                }
            }
        });

        reviewOrderBtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                reviewOrderView = view;
                //handle click
                view.setSelected(true);
                if (menuView != null) {
                    menuView.setSelected(false);
                }
            }
        });

    }
}
